import request from '@/utils/requestH2'

/* 结案审批管理页面 */

// 费用测算页面根据id审批合同
export function addCostCountByIdApi(data, pid) {
  return request({
    url: `/endCaseInspectManage/costCount/addCostCountById/${pid}`,
    method: 'PUT',
    data
  })
}

// 费用测算页面列表查询
export function selCostListApi(params) {
  return request({
    url: `/endCaseInspectManage/costCount/selCostList`,
    method: 'GET',
    params
  })
}

// 结案初审页面根据id审批合同
export function addEndCaseInspectByIdApi(data, id) {
  return request({
    url: `/endCaseInspectManage/endCaseInspect/addEndCaseInspectById/${id}`,
    method: 'PUT',
    data
  })
}

// 结案初审页面列表查询
export function selEndCaseListApi(params) {
  return request({
    url: `/endCaseInspectManage/endCaseInspect/selEndCaseList`,
    method: 'GET',
    params
  })
}

// 计财部核算页面根据id审批合同
export function addFinanceByIdApi(data, pid) {
  return request({
    url: `/endCaseInspectManage/financeAccounting/addFinanceById/${pid}`,
    method: 'PUT',
    data
  })
}

// 计财部核算页面列表查询
export function selFinanceListApi(params) {
  return request({
    url: `/endCaseInspectManage/financeAccounting/selFinanceList`,
    method: 'GET',
    params
  })
}

// 结案终审页面根据id审批合同
// export function addEndCaseFinalInspectByIdApi(data) {
//   return request({
//     url: `/endCaseInspectManage/operationCenter/addOperationCenterById/${id}`,
//     method: 'PUT',
//     data
//   })
// }

// 运营中心审批页面列表查询
export function selOperationListApi(params) {
  return request({
    url: `/endCaseInspectManage/operationCenter/selOperationList`,
    method: 'GET',
    params
  })
}

// 运营中心页面根据id审批合同
export function addOperationCenterByIdApi(data, id) {
  return request({
    url: `/endCaseInspectManage/operationCenter/addOperationCenterById/${id}`,
    method: 'PUT',
    data
  })
}
